package com.maybach.core.manager;

import com.maybach.util.query.support.PageResult;
import com.maybach.common.model.LogisticsCompanyDO;
import com.maybach.common.query.LogisticsCompanyQuery;

import java.util.List;


/**
 * Manager for LogisticsCompany.
 */
public interface LogisticsCompanyManager {
    /**
     * query count by query condition.
     */
    int countByQuery(LogisticsCompanyQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(LogisticsCompanyQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(LogisticsCompanyDO record);

    /**
     * insert selective.
     */
    long insertSelective(LogisticsCompanyDO record);

    /**
     * select by query condition.
     */
    List<LogisticsCompanyDO> selectByQuery(LogisticsCompanyQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<LogisticsCompanyDO> selectByQueryWithPage(LogisticsCompanyQuery query);

    /**
     * select by primary key.
     */
    LogisticsCompanyDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( LogisticsCompanyDO record,  LogisticsCompanyQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(LogisticsCompanyDO record, LogisticsCompanyQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(LogisticsCompanyDO record);
}